package com.zsrt.day20170401;

import java.util.Scanner;

/**
 * switch只能判断==！！！
 * @author zsrt
 *
 */
public class TestSwitch {
	public static void main(String[] args) {
	/*	int x=4,y=1;
		Scanner input =new Scanner(System.in);
		char oper=input.next().charAt(0);
		switch(oper){
		case '+':{
			System.out.println("x+y="+(x+y));
			break;
		}
		case '-':{
			System.out.println("x-y="+(x-y));
			break;
		}
		case '*':{
			System.out.println("x*y="+(x*y));
			break;
		}
		case '/':{
			System.out.println("x/y="+(x/y));
			break;
		}
		default:{
			System.out.println("非法输入，请重输！");
			break;
		}
		}*/
		int a=2,b=3;
		switch(a){
		case 2:b++;
		case 1:b++;break;
		case 3:b++;break;
		}
		System.out.println(b);
	}

}
